package com.lineage.data.item_etcitem;

import com.lineage.data.executor.ItemExecutor;
import com.lineage.server.model.Instance.L1ItemInstance;
import com.lineage.server.model.Instance.L1PcInstance;
import com.lineage.server.serverpackets.S_NPCTalkReturn;
import com.lineage.server.serverpackets.ServerBasePacket;

public class PcMenaOther extends ItemExecutor {
  public static ItemExecutor get() {
    return new PcMenaOther();
  }
  
  public void execute(int[] data, L1PcInstance pc, L1ItemInstance item) {
    String[] info = new String[35];
    if (pc.getName() != null)
      info[1] = String.valueOf(pc.getName()); 
    if (pc.get_other().get_Str() > 0) {
      info[2] = String.valueOf(pc.get_other().get_Str());
    } else {
      info[2] = "0";
    } 
    if (pc.get_other().get_Dex() > 0) {
      info[3] = String.valueOf(pc.get_other().get_Dex());
    } else {
      info[3] = "0";
    } 
    if (pc.get_other().get_Int() > 0) {
      info[4] = String.valueOf(pc.get_other().get_Int());
    } else {
      info[4] = "0";
    } 
    if (pc.get_other().get_Con() > 0) {
      info[5] = String.valueOf(pc.get_other().get_Con());
    } else {
      info[5] = "0";
    } 
    if (pc.get_other().get_Wis() > 0) {
      info[6] = String.valueOf(pc.get_other().get_Wis());
    } else {
      info[6] = "0";
    } 
    if (pc.get_other().get_Cha() > 0) {
      info[7] = String.valueOf(pc.get_other().get_Cha());
    } else {
      info[7] = "0";
    } 
    if (pc.get_other().get_Attack() > 0) {
      info[8] = String.valueOf(pc.get_other().get_Attack());
    } else {
      info[8] = "0";
    } 
    if (pc.get_other().get_BowAttack() > 0) {
      info[9] = String.valueOf(pc.get_other().get_BowAttack());
    } else {
      info[9] = "0";
    } 
    if (pc.get_other().get_Hit() > 0) {
      info[10] = String.valueOf(pc.get_other().get_Hit());
    } else {
      info[10] = "0";
    } 
    if (pc.get_other().get_BowHit() > 0) {
      info[11] = String.valueOf(pc.get_other().get_BowHit());
    } else {
      info[11] = "0";
    } 
    if (pc.get_other().get_Sp() > 0) {
      info[12] = String.valueOf(pc.get_other().get_Sp());
    } else {
      info[12] = "0";
    } 
    if (pc.get_other().get_Hp() > 0) {
      info[13] = String.valueOf(pc.get_other().get_Hp());
    } else {
      info[13] = "0";
    } 
    if (pc.get_other().get_Mp() > 0) {
      info[14] = String.valueOf(pc.get_other().get_Mp());
    } else {
      info[14] = "0";
    } 
    if (pc.get_other().get_Mr() > 0) {
      info[15] = String.valueOf(pc.get_other().get_Mr());
    } else {
      info[15] = "0";
    } 
    if (pc.get_other().get_ReductionDmg() > 0) {
      info[16] = String.valueOf(pc.get_other().get_ReductionDmg());
    } else {
      info[16] = "0";
    } 
    if (pc.get_other().get_Hpr() > 0) {
      info[17] = String.valueOf(pc.get_other().get_Hpr());
    } else {
      info[17] = "0";
    } 
    if (pc.get_other().get_Mpr() > 0) {
      info[18] = String.valueOf(pc.get_other().get_Mpr());
    } else {
      info[18] = "0";
    } 
    if (pc.get_other().get_hppotion() > 0) {
      info[19] = String.valueOf(pc.get_other().get_hppotion());
    } else {
      info[19] = "0";
    } 
    if (pc.get_other().get_exp() > 0) {
      info[20] = String.valueOf(pc.get_other().get_exp());
    } else {
      info[20] = "0";
    } 
    if (pc.get_other().get_ac() < 0) {
      info[21] = String.valueOf(pc.get_other().get_ac());
    } else {
      info[21] = "0";
    } 
    if (pc.get_other().get_weight() > 0) {
      info[22] = String.valueOf(pc.get_other().get_weight());
    } else {
      info[22] = "0";
    } 
    if (pc.get_other().get_regist_stun() > 0) {
      info[23] = String.valueOf(pc.get_other().get_regist_stun());
    } else {
      info[23] = "0";
    } 
    if (pc.get_other().get_regist_stone() > 0) {
      info[24] = String.valueOf(pc.get_other().get_regist_stone());
    } else {
      info[24] = "0";
    } 
    if (pc.get_other().get_regist_sleep() > 0) {
      info[25] = String.valueOf(pc.get_other().get_regist_sleep());
    } else {
      info[25] = "0";
    } 
    if (pc.get_other().get_regist_freeze() > 0) {
      info[26] = String.valueOf(pc.get_other().get_regist_freeze());
    } else {
      info[26] = "0";
    } 
    if (pc.get_other().get_regist_sustain() > 0) {
      info[27] = String.valueOf(pc.get_other().get_regist_sustain());
    } else {
      info[27] = "0";
    } 
    if (pc.get_other().get_regist_blind() > 0) {
      info[28] = String.valueOf(pc.get_other().get_regist_blind());
    } else {
      info[28] = "0";
    } 
    if (pc.get_other().get_PvP_dmg() > 0) {
      info[29] = String.valueOf(pc.get_other().get_PvP_dmg());
    } else {
      info[29] = "0";
    } 
    if (pc.get_other().get_PvP_bow_dmg() > 0) {
      info[30] = String.valueOf(pc.get_other().get_PvP_bow_dmg());
    } else {
      info[30] = "0";
    } 
    if (pc.get_other().get_PvP_hit() > 0) {
      info[31] = String.valueOf(pc.get_other().get_PvP_hit());
    } else {
      info[31] = "0";
    } 
    if (pc.get_other().get_PvP_bow_hit() > 0) {
      info[32] = String.valueOf(pc.get_other().get_PvP_bow_hit());
    } else {
      info[32] = "0";
    } 
    if (pc.get_other().get_PvP_dmg_r() > 0) {
      info[33] = String.valueOf(pc.get_other().get_PvP_dmg_r());
    } else {
      info[33] = "0";
    } 
    if (pc.get_other().get_PvP_magic_r() > 0) {
      info[34] = String.valueOf(pc.get_other().get_PvP_magic_r());
    } else {
      info[34] = "0";
    } 
    pc.sendPackets((ServerBasePacket)new S_NPCTalkReturn(pc.getId(), "pcmenaother", info));
  }
}
